Rule testing framework for executable rules of a service provider system

ABSTRACT

There are provided systems and methods for a rule testing framework for executable rules of a service provider system. During processing rule implementation and/or testing for rules currently implemented in production systems, different values for the variables and attributes of the rule may be required to be tested to ensure proper rule functioning. In order to test the rule, the expression of the rule is determined, and each variable is considered in turn. The expression is evaluated so that the selected variable becomes the output of the expression. Thus, the values of the other variables may then be determined so that the selected variable is the output of the expression. The rule may then be tested for positive and negative values of the selected variable so that the rules functioning for the selected variable is tested.

CROSS REFERENCE TO RELATED APPLICATIONS

This application is a continuation of U.S. application Ser. No.16/729,084, filed Dec. 27, 2019. The disclosure of which is incorporatedherein by reference in its entirety.

TECHNICAL FIELD

The present application generally relates to rule testing for dataprocessing and business rule engines of a service provider, and morespecifically to utilizing simplified expressions to linearly test ruleengine outputs.

BACKGROUND

A service provider, such as a payment service provider and/ortransaction processor, may implement rule engines that providedecision-making features and implement processes based on rules of theservice provider. These rules may correspond to various business rules,which implement and organize business processes into rule engines thatallow for automated execution of processes based on particularattributes of users, transactions, accounts, or other input to the ruleengine for processing. For example, rules may be associated withtransaction processing, risk mitigation, accounting, account validityand maintenance, technical support, promotional programs, advertisingand/or benefits programs, etc. However, when implementing rules for theservice provider's framework and system or making changes to deployedrules, developers require testing that allow for determination ofwhether the rule is functioning properly to build and customize thebusiness processes of the service provider. Since rules can havehundreds, if not thousands, of different attributes that may havedifferent values for input, this testing process is laborious and timeconsuming to iterate over all the potential input values for theattributes, Thus, rule testing for roll-out of rules requires lengthytesting periods and large amounts of computing resources.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a block diagram of a networked system suitable forimplementing the processes described herein, according to an embodiment;

FIG. 2A is an exemplary diagram of a first simplified decision-makingexpression circuit that allows for testing of rules of a serviceprovider system, according to an embodiment;

FIG. 2B is an exemplary diagram of a first simplified decision-makingexpression circuit that allows for testing of rules of a serviceprovider system data, according to an embodiment;

FIG. 3 is a block diagram of an exemplary service provider system thatefficiently tests rules and rule attributes utilizing Booleanexpressions, according to an embodiment;

FIG. 4 is a flowchart of an exemplary process for a rule testingframework for executable rules of a service provider system, accordingto an embodiment; and

FIG. 5 is a block diagram of a computer system suitable for implementingone or more components in FIG. 1, according to an embodiment.

Embodiments of the present disclosure and their advantages are bestunderstood by referring to the detailed description that follows. Itshould be appreciated that like reference numerals are used to identifylike elements illustrated in one or more of the figures, whereinshowings therein are for purposes of illustrating embodiments of thepresent disclosure and not for purposes of limiting the same.

DETAILED DESCRIPTION

Provided are methods utilized for a rule testing framework forexecutable rules of a service provider system. Systems suitable forpracticing methods of the present disclosure are also provided.

A service provider system may implement different types of rules intotheir systems and rules engines, where the rules are utilized to provideservices, processes, and operations of the service provider. In thisregard, a transaction processor provides electronic transactionprocessing services to users that allow for users to processtransactions electronically, where rules engines of the transactionprocessor may be used to provide services and operations associated withthose services. These services may include electronic transactionprocessing (e.g., accounting, payment and transfer processes, etc.),account generation and maintenance, risk analysis and fraud prevention,promotional strategies (e.g., advertisement, benefit conferral, etc.),credit and loan procurement, and the like. For example, rules may beimplemented with a risk analysis system and operations of thetransaction processor, where one or more specific rules may be utilizedto determine if a buyer in a transaction is fraudulent. A rule for riskanalysis may take, as input, various characteristics of the buyer,seller, transaction, accounts, or other data associated with thetransaction, and process that data for a set of rule attributes orvariables, where the attributes cause an outcome or output of the rulethat indicates potential fraud. However, rules and rule testing asdiscussed herein may be implemented with any business system across anyindustry type where rule-based decision making may be implemented andutilized.

Thus, the rule assists the service provider in making automateddecisions regarding specific operations and processes provided by theservice provider's platform based on the attributes that may beprocessed across a set of input data. The rules therefore correspond tobusiness rules of the service provider, that may be coded in executablecomputer code to allow for output of a particular outcome based on theinput data processed by a rule engine using the rules. These ruleengines therefore allow intelligent decision-making of the serviceprovider to be automated and certain outputs to be determined toimplement processes and service deployments of the service provider.Thus, operational business processes of a service provider may beconstructed out of these business rules, which are implemented inbusiness process applications and platforms.

However, when implementing these rules and/or when making changes torules in deployment, such as changes to attributes or variables (e.g.,values for certain outputs, thresholding, attribute outcomes, additionalor removal of attributes, etc.), rule testing is required to ensure thatthe rule operates correctly in practice and provides the correctoutcome. Without rule testing, incorrect outcomes make occur for certainrules and/or rule engines, which may cause operational issues with theservice provider's systems, exploitation by fraudsters and bad actors,loss of customer satisfaction, and/or an increase in user/account churnrate whereby customers (e.g., buyers, sellers, consumers, merchants, orother entities of a transaction processor) leave the service providerand lead to attrition of the service provider. Thus, the serviceprovider may require a testing mechanism that may be provided by a ruletesting framework. This ensures the implementation of the business rulesinto applications and platforms for the correct execution of thebusiness rules in those applications or platforms. For example, during afinancial business process of an application, a developer for theapplication may implement one or more business rules into an applicationfor use by a service provider in the financial business process. Inorder to test the application, the developer previously was required toregress over the entire attribute or variable set of the rule based onall possible combinations of values of the attributes, which validatesbusiness rules using test data, for example, by testing forimplementation of a business rule in the process/application. This cancreate a large number of combinations. For example, in a binary case ofa rule with 1,000 attributes, the possible combinations may be 21000different combinations, which may take considerable time and processingpower to complete.

In contrast, a testing mechanism may provide for testing of businessrules that define business applications and/or platforms in a linearmanner that does not require testing of all possible combinations ofvalues of the attributes for the rules. A user may generate or modify anapplication, platform, or service provided by the service providerthrough a software and/or hardware framework using business rules forrules engines that make decisions and provide other output for theservice provider. When doing so, the testing mechanism may beimplemented by a developer, where the testing mechanism allows testingprior to rule roll out (e.g., implementation and/or change within theservice provider system). The testing may be performed on a rulestatement that corresponds to an expression of the rule, where the ruleexpression may correspond to a Boolean expression whereby the attributesor “variables” of the rule expression correspond to Boolean conditions.A Boolean expression corresponds to a particular type of expressioncontaining the set of Boolean conditions (e.g., Boolean operations onthe variables for the rule attributes) separated by logical AND orlogical OR operators, where logical AND corresponds to a logicalconjunction operation and logical OR corresponds to a logicaldisjunction operation between two or more attributes. Boolean conditionscorrespond to a statement or query that evaluates to either true orfalse. Therefore, each attribute of the expression corresponds to aBoolean condition that may evaluate to either true or false based oninput data for the variable. For example, a variable of A>3 (A is someinteger), !B (B is a Boolean variable, e.g., true or false), and C=“k”(C is some character) are examples of Boolean conditions that maycorrespond to attributes for the variables of a rule expression. Thus,Boolean conditions for the variable data attributes of the Booleanexpression define the rule statement for the rule in two differentvalues (e.g., true or false or other values for a two-state logic systemhaving the variables correspond to one of two different states oroptions). As such, a rule, as discussed herein, may be referred to as arule expression, expression, or Boolean expression, where variables maybe referred to as a condition or Boolean condition that is associatedwith the variable (e.g., operates on the variable to evaluate to TRUE orFALSE based on values of the variable).

As previously discussed, iterating over all outcomes for the Booleanconditions (e.g., the variables) creates an exponential output ofpotential combinations and therefore test cases that a rule testingoperation would be required to complete. For example, in the case offour variables (A, B, C, D), the number of combinations is A*B*C*D,which with Boolean conditions becomes 2*2*2*2 or 2⁴=16. In order to testthe Boolean expression (e.g., the rule expression) for the rule in alinear manner, instead of testing each variable's values and proceedingthrough all possible cases, instead one variable is chosen at a time,the remaining variables are set to values that cause the value of theentire Boolean expression to equal the chosen variable. In this manner,the number of test cases may be reduced to the number of outputs of thevariables (e.g., two in the case of Boolean conditions) multiplied bythe number of variables. In the above example, this reduces the numberof testing cases from 16 to 8 (e.g., 2 values×4 variables, or 2*4=8).The time complexity of performing the tests for the rule expression istherefore reduced from an exponential time complexity to a linear timecomplexity.

In order to perform this testing of a rule statement for a serviceprovider system, two rules may be implemented so that testing of therule statement may be performed. Generally, those rules are 1. X andTRUE=X; and 2. X or FALSE=X, where X is a Boolean variable. This allowssetting of the remaining variable in such a way that makes the ruleexpression equal to the chosen variable when setting those variables asBoolean variables. For example, if the rule or Boolean expressioncorresponds to (A and B or C), if B is chosen as the output variable forthe expression, then A must be set to be true under the first rule, andtherefore variable values of A must make the statement of A's variabletrue, and C must be set to be false under the second rule, and thereforevariable values of C must make the statement of C's variable false.Thus, the rule testing operation may determine that A (as a Booleancondition where some statement must evaluate to true or false) must betrue for B to be the output and therefore variable values of A must beset to be true for B. Conversely, if the rule testing operationdetermines that C must be false for B to be the output, variable valuesmust be set to be false for B to be the output. The rule testingframework may then determine values for A, B, and C as required for eachdifferent variable to be the output of the Boolean expression for therule.

Thereafter, the rule testing operation of the rule testing framework mayoutput the required values for each of the variables based on whichvariables are selected as the output. This allows for rule testing ofeach different condition for the system and allows for determination ofwhether each attribute or variable, and the rule itself, is properlyfunctioning based on the desired output. For example, with ruleattributes such as country of origin, device category, accountcertification, account risk factor, or other attribute that may have acorresponding statement that can be evaluated to be true or false (e.g.,matches a value, is equal to or exceeds a value, etc.), each attributemay be tested to determine whether the rule is properly functioning toprovide the correct output based on that attribute and the assignedvalues of the other attributes. This allows for simplified testing ofbusiness rules within a service provider's business rules engines whendeploying, updating, or revising rules. Thus, data may be entereddynamically and changed, enabling tests to be performed on rules in anexpedited manner. This allows further for testing different paths of abusiness rule building business processes, applications, and platformsdynamically and with less computing time and resources. These businessrules may be implemented on any type of business, industry, ororganization that utilizes rule-based decision making. In this regard,any such organization may utilize rule testing as described herein tomore quickly and efficiently test rule-based decision-making engines oftheir systems.

Further, if a rule does not behave as required, the testing mechanismmay determine a reason for failure (e.g., the values of the otherattributes) and output those attributes causing the unwanted orunpredicted failure of the rule (e.g., where the variables do not behaveas predicted or desired and have unwanted values). The user may thenview test results and compare to expected results to determine whetherthe business rule has passed or failed the test. The testing mechanismand framework may interact with one or more application programminginterfaces (APIs) of different services that may be called for ruletesting and determination of the rule expressions. Data may therefore becommunicated between different services and operations of the serviceprovider. For example, multiple APIs may exchange risk calls, databasecalls and/or writes, processing calls for electronic transactions,planning calls, execution calls, or other service calls based onbusiness rules, where the APIs may expose their rules for testing and/orengines for implementation of tested rules.

FIG. 1 is a block diagram of a networked system 100 suitable forimplementing the processes described herein, according to an embodiment.As shown, system 100 may comprise or implement a plurality of devices,servers, and/or software components that operate to perform variousmethodologies in accordance with the described embodiments. Exemplarydevices and servers may include device, stand-alone, andenterprise-class servers, operating an OS such as a MICROSOFT® OS, aUNIX® OS, a LINUX® OS, or other suitable device and/or server based OS.It can be appreciated that the devices and/or servers illustrated inFIG. 1 may be deployed in other ways and that the operations performedand/or the services provided by such devices and/or servers may becombined or separated for a given embodiment and may be performed by agreater number or fewer number of devices and/or servers. One or moredevices and/or servers may be operated and/or maintained by the same ordifferent entities.

System 100 includes a service provider server 110 accessible over anetwork 140. A developer (not shown) may develop and test the variousfeatures available for service provider server 110, which may includeprocesses and/or applications that may interact with services providedby service provider server 110, as well as other devices, based on rulesand rule engines of service provider server 110. Service provider server110 may provide a linear testing mechanism and framework for testing ofrules prior to and after deployment based on evaluation rules forBoolean expressions associated with those rules. This may reduce thenumber testing scenarios for a particular rule and may provide fasterrule testing by service provider server 110. The rules may then provideservices over network 140 to other users or service provider server 110may provide rule testing results for rules to other entities.

Service provider server 110 may include one or more processors,memories, and other appropriate components for executing instructionssuch as program code and/or data stored on one or more computer readablemediums to implement the various applications, data, and steps describedherein. For example, such instructions may be stored in one or morecomputer readable media such as memories or data storage devicesinternal and/or external to various components of system 100, and/oraccessible over network 140.

Service provider server 110 may be maintained, for example, by an onlineservice provider, which may provide services, including transactionprocessing and payment services, with other data processing features tousers through implemented services of service provider server 110. Inthis regard, service provider server 110 includes one or more processingapplications which may be configured to test rules prior to and afterdeployment in those services. In one example, service provider server110 may be provided by PayPal®, Inc. of San Jose, Calif., USA. However,in other embodiments, service provider server 110 may be maintained byor include another type of service provider, which may provide theaforementioned services to a plurality of users.

Service provider server 110 of FIG. 1 includes a rule testing framework120, service applications 130, other applications 112, a database 114,and a network interface component 116. Rule testing framework 120,service applications 130, and other applications 112 may correspond toexecutable processes, procedures, and/or applications with associatedhardware. In other embodiments, service provider server 110 may includeadditional or different modules having specialized hardware and/orsoftware as required.

Rule testing framework 120 may correspond to one or more processes toexecute software modules and associated specialized hardware of serviceprovider server 110 to provide rule testing of rules implemented inapplications, processes, and operations executed by service providerserver 110 and/or provided to other devices and servers for execution.In this regard, rule testing framework 120 may correspond to specializedhardware and/or software to execute rule tester 122 to test rules 124having attributes 126, which results in rule results 128 that includethe behavior of the rule for each specific variable of attributes 126for one of rules 124. For example, rules 124 may correspond to businessrules or decision-making rules and expressions for service providerserver 110 that provide deterministic outcomes or outputs based on theinput for variables of attributes 126 that make up rules 124. Thus, oneof rules 124 may be associated with a risk practice, a businesspractice, an online marketplace platform, a benefit conferrable to usersof the service provider system, an advertising strategy, or apromotional program. Each one of rules 124 provides a specific decisionbased on the input for a user, account, transaction, or other availableinput data. For example, one of rules 124 may provide a product, anadvertisement, a benefit, a risk evaluation, a loan or creditdetermination, an account establishment determination, an authenticationprocess, or other outcome provided by the services of service providerserver 130

Rule tester 122 may be utilized to test one of rules 124 utilizing alinear testing process that tests each individual ones of attributes 126that makes up that rule of rules 124. For example, a rule of rules 124may be currently implemented in a production system, or the rule may berequired to be rolled out and implemented in an existing or newproduction system. Testing may be done to ensure that the rule workscorrectly and provides the correct or desired outcome or output, such asthe correct decision or output based on input data to the rule. Thatrule may have one or more of attributes 126 implemented into the rule sothat an outcome or output is provided based on the input data to thevariable(s) for attributes 126. Attributes 126 may correspond to acondition that takes some input and produces a value, such as a Booleanstatement that takes input and produces a Boolean value (e.g., TRUE orFALSE, 1 or 0, etc.). The rule of rules 124 having one or more ofattributes 126 may therefore correspond to a statement, such as aBoolean statement, where the variables of the rule are separated usinglogical statements (e.g., logical conjunctions, disjunctions, ornegations, such as the Boolean operators AND, OR, or NOT, respectively).

Thus, when rule tester 122 operates on the rule to test the rule, ruletester 122 may view the rule as a Boolean expression (the rule or ruleexpression) having Boolean conditions (the variables). To test the rule,rule tester 122 may select a specific variable or Boolean condition(e.g., A, where the variables are designated by A, B, C . . . ), anddetermine the required values of the other variables (e.g., the outcomeBoolean value for the other variables' Boolean condition, such as TRUEor FALSE). Two rule testing requirements or basic rules may beimplemented by rule tester 122 to test the rule, where the requirementsare: 1. X or FALSE=X and X and TRUE=X. This allows for testing of justtwo test scenarios for the selected variable, such as when the selectedvariable's Boolean condition results in TRUE or FALSE. Therefore,instead of testing each rule individual that has two states or Booleanvalues, which requires 2^(n) tests (e.g., an exponential test scenario),only 2*n tests (a linear testing function) are require, where n=thenumber of variables in the rule. Rule tester 122, rules 124, attributes126, and rule results 128 are discussed in more detail with regard toFIGS. 2A-B.

Service applications 130 may correspond to one or more processes toexecute software modules and associated specialized hardware of serviceprovider server 110 to provide services to users for data processing,such as transaction processing using transaction processing application132. In some embodiments, service applications 130 may provide payment,purchasing, and/or transfer services to the users, for example though apayment account and/or payment instruments of the user and to otherusers, merchants, or entities, and through transaction processingapplication 132. In this regard, service applications 130 may correspondto specialized hardware and/or software to provide payment services andpayment accounts through software services, which may be providedthrough transaction processing application 132. In some embodiments,transaction processing application 132 may allow for a payment to a userand/or merchant through a payment instrument, including a credit/debitcard, banking account, payment account with service provider server 110,and/or other financial instrument.

In order to establish a payment account for a user to send and receivepayments, information may be provided, which may include user personaland/or financial information. Additionally, the information may includeauthentication information, such as a login, account name, password,PIN, or other account creation information. The user may provide a name,address, social security number, or other personal information necessaryto establish an account and/or effectuate payments. Service applications130 may further allow the user to maintain the payment account, forexample, by adding and removing payment instruments. In order to performtransaction processing and/or payments, service applications 130 mayutilize transaction processing application 132 to receive and/orgenerate payment transaction data and process the data, such as bygenerating a payment instruction and processing the payment instruction.Service applications 130 may also be used to debit an account of theuser and provide the payment to an account of the merchant or otheruser. Service applications 130 may also be used to provide transactionhistories for processed transactions. In this regard, serviceapplications 130 may implement one or more rules to provide theseservices, which may also provide for rule-based validation whenproviding processes to users.

In various embodiments, service provider server 110 includes otherapplications 112 as may be desired in particular embodiments to providefeatures to service provider server 110. For example, other applications112 may include security applications for implementing server-sidesecurity features, programmatic client applications for interfacing withappropriate application programming interfaces (APIs) over network 140,or other types of applications. Other applications 112 may containsoftware programs, executable by a processor, including a graphical userinterface (GUI), configured to provide an interface to the user whenaccessing service provider server 110, where the user or other users mayinteract with the GUI to more easily view and communicate information.In various embodiments, other applications 112 may include connectionand/or communication applications, which may be utilized to communicateinformation to over network 140.

Additionally, service provider server 110 includes database 114. Aspreviously discussed, a user may establish one or more digital walletsand/or payment accounts with service provider server 110. Digitalwallets and/or payment accounts in database 114 may include userinformation, such as name, address, birth date, paymentinstruments/funding sources, additional user financial information, userpreferences, and/or other desired user data. Users may link to theirrespective digital wallets and/or payment accounts through an account,user, and/or device identifier. Thus, when an identifier is transmittedto service provider server 110, e.g., from data client 110, one or moredigital wallets and/or payment accounts belonging to the users may befound. Database 114 may also store rule expressions and statementshaving variables, such as business rules of service provider server 110.This rule expressions may include Boolean statements having Booleanconditions, which may be tested by service provider system 110 andimplemented in one or more applications, processes, or operations. Withregard to testing the rules, database 114 may further store test resultsfrom tests of the rules.

In various embodiments, service provider server 110 includes at leastone network interface component 116 adapted to communicate over network140 with other devices, servers, and online resources. In variousembodiments, network interface component 116 may comprise a DSL (e.g.,Digital Subscriber Line) modem, a PSTN (Public Switched TelephoneNetwork) modem, an Ethernet device, a broadband device, a satellitedevice and/or various other types of wired and/or wireless networkcommunication devices including microwave, radio frequency (RF), andinfrared (IR) communication devices.

Network 140 may be implemented as a single network or a combination ofmultiple networks. For example, in various embodiments, network 140 mayinclude the Internet or one or more intranets, landline networks,wireless networks, and/or other appropriate types of networks. Thus,network 140 may correspond to small scale communication networks, suchas a private or local area network, or a larger scale network, such as awide area network or the Internet, accessible by the various componentsof system 100.

FIG. 2A is an exemplary diagram of a first simplified decision-makingexpression circuit that allows for testing of rules of a serviceprovider system, according to an embodiment. Rule expression 200 a inFIG. 2 shows an expression of A>9 and (B==true or C==‘k’) and D<0.5,which corresponds to a Boolean expression that provides a specificoutput (e.g., TRUE or FALSE) based on the input values for thevariables. Thus, rule expression 200 a includes four variables,variables A, B, C, and D, which each have a corresponding condition,such as a Boolean condition. The conditions involved are a condition1002 (A>9), a condition 1006 (B==true), a condition 1008 (C==‘k’), and acondition 1014 (D<0.5). Rule expression 200 a is further shown withoperators between the conditions (e.g., Boolean operators), includingoperator 1004 (AND), operator 101 (OR), and operator 1012 (AND).Evaluation rule expression 200 a to be TRUE may indicate approval tosend a promotion, process a transaction, provide a benefit, evaluate arisk scenario (e.g., exceeds or does not exceed risk tolerance), orotherwise provide some output or outcome for the application, process,or operation that incorporates rule expression 200 a. Rule expression200 a may be written in a coding or scripting language forimplementation into a service provider software framework or other dataprocessing architecture.

Previous testing requires the rule testing engine to enumerate throughall cases of the values for the Boolean conditions of conditions 1002,1006, 1008, and 1014. This therefore requires testing each possiblevalue (e.g., TRUE or FALSE) for each condition. The following tableprovides a breakdown of testing each variable for the rule expression,which results in 2^(n) tests, or here 2⁴=16 tests.

TABLE 1 A > 9 and (B == true Binary B == or C == ‘k’) S# (4 variable) AB C D A > 9 TRUE C = ‘k’ D < 0.5 and D < 0.5 0 0000 7 TRUE X′ 0.6 FALSEFALSE FALSE FALSE FALSE 1 0001 7 TRUE X  0.4 FALSE FALSE FALSE TRUEFALSE 2 0010 7 TRUE K′ 0.6 FALSE FALSE TRUE FALSE FALSE 3 0011 7 TRUE K′0.4 FALSE FALSE TRUE TRUE FALSE 4 0100 7 FALSE X′ 0.6 FALSE TRUE FALSEFALSE FALSE 5 0101 7 FALSE X  0.4 FALSE TRUE FALSE TRUE FALSE 6 0110 7FALSE K′ 0.6 FALSE TRUE TRUE FALSE FALSE 7 0111 7 FALSE K′ 0.4 FALSETRUE TRUE TRUE FALSE 8 1000 11 TRUE X′ 0.6 TRUE FALSE FALSE FALSE FALSE9 1001 11 TRUE X  0.4 TRUE FALSE FALSE TRUE FALSE 10 1010 11 TRUE K′ 0.6TRUE FALSE TRUE FALSE FALSE 11 1011 11 TRUE K′ 0.4 TRUE FALSE TRUE TRUETRUE 12 1100 11 FALSE X′ 0.6 TRUE TRUE FALSE FALSE FALSE 13 1101 11FALSE X  0.4 TRUE TRUE FALSE TRUE TRUE 14 1110 11 FALSE K′ 0.6 TRUE TRUETRUE FALSE FALSE 15 1111 11 FALSE K′ 0.4 TRUE TRUE TRUE TRUE TRUE

However, utilizing testing scenario 1000, a rule tester (e.g., ruletester 122 of rule testing framework 120), for the rule may instead testeach variable individually to determine the required states or values ofthe other variables. In order to do this, two basic assumptions or rulesmay be made by the rule tester as follows:

1. X and TRUE=X (e.g., if X is TRUE, X and TRUE=TRUE, if X is FALSE, Xand FALSE=FALSE, hence X and TRUE=X) and

2. X or FALSE=X, (e.g., if X is TRUE, X or FALSE=TRUE, if X is FALSE, Xor FALSE=FALSE, hence X or FALSE=X).

Thus, a single variable (e.g., A, corresponding to condition 1002) maybe selected, and the required output values (e.g., TRUE or FALSE forBoolean conditions) may be determined for conditions 1006, 1008, and1014. This allows for determination of the corresponding values that thevariable can be to make conditions 1006, 1008, and 1014 evaluate totheir required output of TRUE or FALSE. In testing scenario 1000, acircuit diagram corresponding to the Boolean expression is shown basedon the operators, where an open switch is equal to FALSE and a closedswitch is equal to TRUE. Therefore, the switches, which may be anysuitable electronic switch, including transistor type switches, may beopened and closed as necessary to make a certain variable andcorresponding condition as the outcome or output to rule expression 200a.

For example, taking each variable separately, the following presents thetest cases for each variable:

To test A>9 with both positive and negative scenarios, let us set allbase rules such that, (B==true or C===TRUE, D<0.5=TRUE. We then test twoscenarios, A>9=TRUE (A=11) and A>9=FALSE (A=7).

To test B==TRUE with both positive and negative scenarios, let us setall base rules such that, A>9=TRUE, C===FALSE, D<0.5=TRUE. We then testtwo scenarios, B=TRUE and B=FALSE.

To test C==‘lc’ with both positive and negative scenarios, let us setall base rules such that, A>9=TRUE, B=FALSE, D<0.5=TRUE. We then testtwo scenarios, C===TRUE (C=′k′) and C===FALSE (e.g., C=‘x’).

To test D<0.5 with both positive and negative scenarios, let us set allbase rules such that, A>9=TRUE, (B==true or C===TRUE, D<0.5=TRUE. Wethen test two scenarios, D<0.5=TRUE (D=0.4) and D<0.5=FALSE (D=0.6).

This therefore allows for reducing the number of test cases for eachvariable by determining required values for the other variables so thatrule expression 200 a evaluates to either true or false for the specificvariable. Thus, 100% of test cases can be covered by determining howeach individual variable and condition affects the outcome of ruleexpression 200 a. This allows for testing of rule expression 200 a to bereduced from 2^(n) tests, (e.g., with the four above variables, thenumber of test for rule expression 200 a would be 2⁴=16 tests) to 2*ntests (e.g., with the four above variables, the number of test for ruleexpression 200 a would be reduced to 2*4=8 tests).

FIG. 2B is an exemplary diagram of a first simplified decision-makingexpression circuit that allows for testing of rules of a serviceprovider system data, according to an embodiment. FIG. 2B includes atesting scenario 1100, which may correspond to a Boolean expression fora rule tested by a service provider, for example, for rollout into aproduction application or process or implement in production (e.g., whena variable or attribute of the rule may be changed, deleted, or added,including changing ordering of operators and the like). In this regard,the Boolean expression for testing scenario 1100 corresponds to (BE),where (BE)=A and (B or C) or (D and E or F) and G. A, B, C, D, E, and Gcorrespond to Boolean conditions or other attributes that evaluate totrue or false based on input to the corresponding variable. For example,a Boolean condition may compare two numbers or values (e.g.,using==, >=, and the like). For example, A may correspond to A>=3, whichmay return true of false based on input values for A (e.g., the input toA when the Boolean expression is being used to evaluate a data set).

In this regard, the Boolean expression may be written as “sellerisfromUSand (sellerisCertified or saleincategory(laptops)) or (D and E or F) andG” for particular conditions or attributes that make up A, B, and C.Thus, A evaluates to be TRUE when input for a seller in a transaction isfrom the US, but otherwise evaluates to be FALSE. Similarly, for B, theseller is required to be certified for B to evaluate to be true, andfalse otherwise. Other types of attributes and variables may also beused, and other Boolean conditions may be written differently dependingon the desired outcome of the rule. Testing scenario 1100 functionssimilar to testing scenario 1000 in FIG. 2A. For example, when viewingthe circuit diagram, open switches mean that variable is set to FALSEand open switches mean that variable is set to TRUE. Thus, testingscenario is shown with a switch A 1102, a switch B 1104, a switch C1106, a switch D 1108, a switch E 1110, a switch F 1112, and a switch G1114 each corresponding to their variable of the Boolean expression. Asshown in FIG. 2B, all switches are open in an initial testing, whereeach switch is then evaluated to make a specific variable the outcome ofthe Boolean expression.

In order to test a particular variable, that variable is selected. Forexample, when selecting C at the output of the Boolean expression, theother switches have to be: Switch A 1102—closed, switch B 1104—open, andswitch G 1114—closed. As shown, this allows the outcome (e.g., thecurrent to flow from the start at switch A 1102 to the output of switchG 1114) to be dependent on opening and closing switch C 1106. Thus, C isthe reference variable as setting switch C 1106 to TRUE (closed) orFALSE (open) cause the circuit to be complete (closed for switch C 1106)or broken (open for switch C 1106).

However, the effective value of (switch D 1108 and switch E 1110 orswitch F 1112) has to be open as if a complete circuit is made by eitherclosing switch F 1112, or closing both switch D 1108 and switch E 1110,then the effective state of C (switch C 1106 being the referencevariable) is no longer the output for the Boolean expression. Withreference to the Boolean expression, in order to set (D and E or F) toFALSE (open for (switch D 1108 and switch E 1110 or switch F 1112)),there are a few scenarios. For example, switch F 1112 is required toalways be open. An effective combination of (D and E) is required to beFALSE. This is achieved by selecting one of the following switch states({switch D 1108—closed, switch E 1110—open}, {switch D 1108—open, switchE 1110—closed},{switch D 1108—open, switch E 1110—open}).

We can then substitute this testing into the Boolean expression of A and(B or C) or (D and E or F) and G when testing C. A must be TRUE and Gmust be TRUE, while B must be FALSE and F must be FALSE. Any combinationof D and E that evaluates to FALSE is sufficient. Thus, we are left with(BE)=C=TRUE and (FALSE or C) or (TRUE and FALSE or FALSE)=TRUE and C or(FALSE or FALSE)=C or FALSE=C. Thus, if the state of C is set to TRUE,the value of the Boolean expression is TRUE and if C is set to FALSE,the value is FALSE.

FIG. 3 is a block diagram of an exemplary service provider system thatefficiently tests rules and rule attributes utilizing Booleanexpressions, according to an embodiment. System 300 includes serviceprovider server 110 discussed in reference to system 100 of FIG. 1.

In this regard, service provider server 110 includes a rule testingframework that may be utilized to test rules for their specific resultsdepending on the input to variables of the rules. For example, serviceprovider server 110 includes and operates on rule testing data 320 whenevaluating a business rule 2000. This business rule 2000 may correspondto some decision-making operation, written in or for an application,process, operation, or other production computing service provided byservice provider server 110. For example, business rule 2000 may causean outcome or output of an operation provided through services ofservice provider server 110. These services may include any computingservice that service provider server 110 may provide to users,merchants, partners, or other online entities. For example, the servicesmay be associated with electronic transaction processing, messaging,risk policies, benefits, promotions, searches, matching processing, orother services.

Service provider server 110 may determine attributes 2002 for businessrule 2000, which may correspond to those particular logical statementsthat operate on a particular variable that takes input from a requestedexecution of a process or operation associated with business rule 2000.For example, an attribute or attributes 2002 may correspond to a Booleancondition that compares two values to determine a TRUE or FALSE outcome.Business rule 2000 may also be associated with an output 2004, whichcorresponds to the desired output of business rule 2000 depending on theinput data. For example, for a business rule that corresponds to sendinga promotion to a user if the user meets certain criteria, output 2004may be the criteria that the user is required to meet (e.g., lives in acertain country, has over a certain amount of sales or purchases, has anaccount balance of greater than X, has an account age of greater or lessthan Y, etc.). Thus, service provider server 110 may want to testbusiness rule 2000 to ensure proper compliance with output 2004.

Thus, a testing requirement 2006 may be requested for business rule2000. Testing requirement 2006 may operate before or when business rule2000 is in production with a corresponding product or service of serviceprovider server 110. A Boolean expression 2008 is determined forbusiness rule 2000, which may correspond to the coded processes ofbusiness rule 2000 to operate on input data. Attributes 2002 thereforecorrespond to Boolean conditions 2010 that make up Boolean expression2008. Thereafter, selecting each of Boolean conditions 2010 so that thecorresponding variable is the output of Boolean expression 2008, testresults 2012 are determined. These test results 2012 include therequired values of each variable for Boolean conditions 2010 so that thestates (e.g., TRUE or FALSE) of Boolean conditions 2010 cause theselected variable to be the output (thereby causing the variablescorresponding Boolean condition to cause Boolean expression 2008 toevaluate to TRUE or FALSE when that Boolean condition is TRUE or FALSE).Test results 2012 therefore include selected variables 2014 for eachselection of variables and corresponding required values 2016 forselected variables 2014.

FIG. 4 is a flowchart of an exemplary process for a rule testingframework for executable rules of a service provider system, accordingto an embodiment. Note that one or more steps, processes, and methodsdescribed herein of flowchart 400 may be omitted, performed in adifferent sequence, or combined as desired or appropriate.

At step 402 of flowchart 400, a rule for testing in a transactionprocessor system is received. The rule corresponds to some codedexpression that evaluates to provide a specific output based on theinput data from the system. This input data may depend on theapplication, process, or operation utilizing the rule, as well as thespecific input scenario (e.g., a user, item, and merchant within atransaction for electronic processing. For example, a rule may assertwhether a transaction is allowed to be processed based on correct inputdata (e.g., credit card, amount, shipping/billing address, etc.).However, rules may also collectively make up an operation and anoperation may include several different rules that function to providethe output, including rules that provide input to other rules. Forexample, proceeding with electronic transaction processing between auser and a merchant may include a risk rule, a promotional rule, abenefit conferred or used rule, a return policy rule, a shipping/billingrule, an authorization and/or authentication rule, and the like. Thus,the transaction processor system may be made up of many different rulesthat operate to provide services and product to users of that system(e.g., consumers, merchants, partners, etc.).

At step 404, variables and a Boolean expression for the rule aredetermined, which may correspond to the coded expression for the rulethat provides an outcome or output based on input data for each of thevariables that make up the Boolean expression. Each of these variablesis associated with a particular logical statement or Boolean conditionthat evaluates to be TRUE or FALSE depending on the input data for thevariable (e.g., an integer, a specific value, a denomination type, acountry of residence, a transaction type or class, etc.). For example, avariable A may be required to be greater than or equal to 5 for aparticular condition of the expression. Each of these required scenariosmay be determined to provide a full Boolean expression that evaluates tobe TRUE or FALSE depending on the input. Further, the evaluation of theBoolean expression may cause the corresponding decision of thetransaction processor system. For example, when the expression evaluatesto be TRUE, a benefit or promotion may be provided, authentication maybe validated, a transaction may be processed, etc., and vice versa.

At step 406, one of the variables to test the rule statement isselected. This is done instead of iterating through all values of thevariables individually, which, when using Boolean expressions havingBoolean conditions for variables, requires 2^(n) different tests(therefore an exponential testing function, where n is the number ofvariables in the Boolean expression). Instead, by selecting eachvariable at a time, only variables with different states are tested at atime, therefore requiring only 2*n different tests (therefore a lineartesting function, reducing the number of required tests especially inthe case of high variable count rules).

At step 408, all of the other variables in the Boolean expression havetheir values set so that the selected variable is the output of theBoolean expression. In this regard, when a variable is selected, thatvariable becomes the determining reference variable for the Booleanexpression. Therefore, that variable should now be the determiningfactor of whether the Boolean expression evaluates to be TRUE of FALSE.For example, if A is selected in the above example, the other variables'values are set so that only when A is greater than or equal to 5(thereby making the corresponding Boolean condition TRUE) does theBoolean expression of the rule evaluate to be TRUE, and vice versa forwhen A is less than 5 (e.g., the Boolean expression now evaluates to beFALSE based on the values set for the rest of the variables). This isdone by making basic rules necessary to determine the values of theother variables. For example, A and TRUE equals A, which means when A iswith the Boolean operator AND, the expression evaluates to be theBoolean value of A's condition (and therefore input value).Additionally, A or FALSE equals A, which means when A is with theBoolean operator OR, the expression evaluates to be the Boolean value ofA's condition (and therefore input value).

At step 410, a test result is generated for the variable and the valuesof the other variables. The test result therefore shows what therequired values (or value ranges) of particular variables are requiredto be when the selected variable is the output of the Booleanexpression. This allows a reviewer of the rule to determine what theeffects of particular inputs to the variable (as well as the othervariables) are on whether the Boolean expression is TRUE of FALSE.Therefore, based on particular input, the outcome of the rule may bedetermined. Thereafter, at step 412, the rule testing operation iteratesthrough all other variables testing in a similar manner to generate afull set of test results. This allows a tester of the rule to view theoutcome of a particular variable for the rule and whether that variableis properly functioning within the rule with the other variables (e.g.,based on the desired outcome of the rule).

FIG. 5 is a block diagram of a computer system suitable for implementingone or more components in FIG. 1, according to an embodiment. In variousembodiments, the communication device may comprise a personal computingdevice (e.g., smart phone, a computing tablet, a personal computer,laptop, a wearable computing device such as glasses or a watch,Bluetooth device, key FOB, badge, etc.) capable of communicating withthe network. The service provider may utilize a network computing device(e.g., a network server) capable of communicating with the network. Itshould be appreciated that each of the devices utilized by users andservice providers may be implemented as computer system 500 in a manneras follows.

Computer system 500 includes a bus 502 or other communication mechanismfor communicating information data, signals, and information betweenvarious components of computer system 500. Components include aninput/output (I/O) component 504 that processes a user action, such asselecting keys from a keypad/keyboard, selecting one or more buttons,image, or links, and/or moving one or more images, etc., and sends acorresponding signal to bus 502. I/O component 504 may also include anoutput component, such as a display 511 and a cursor control 513 (suchas a keyboard, keypad, mouse, etc.). An optional audio input/outputcomponent 505 may also be included to allow a user to use voice forinputting information by converting audio signals. Audio I/O component505 may allow the user to hear audio. A transceiver or network interface506 transmits and receives signals between computer system 500 and otherdevices, such as another communication device, service device, or aservice provider server via network 140. In one embodiment, thetransmission is wireless, although other transmission mediums andmethods may also be suitable. One or more processors 512, which can be amicro-controller, digital signal processor (DSP), or other processingcomponent, processes these various signals, such as for display oncomputer system 500 or transmission to other devices via a communicationlink 518. Processor(s) 512 may also control transmission of information,such as cookies or IP addresses, to other devices.

Components of computer system 500 also include a system memory component514 (e.g., RAM), a static storage component 516 (e.g., ROM), and/or adisk drive 517. Computer system 500 performs specific operations byprocessor(s) 512 and other components by executing one or more sequencesof instructions contained in system memory component 514. Logic may beencoded in a computer readable medium, which may refer to any mediumthat participates in providing instructions to processor(s) 512 forexecution. Such a medium may take many forms, including but not limitedto, non-volatile media, volatile media, and transmission media. Invarious embodiments, non-volatile media includes optical or magneticdisks, volatile media includes dynamic memory, such as system memorycomponent 514, and transmission media includes coaxial cables, copperwire, and fiber optics, including wires that comprise bus 502. In oneembodiment, the logic is encoded in non-transitory computer readablemedium. In one example, transmission media may take the form of acousticor light waves, such as those generated during radio wave, optical, andinfrared data communications.

Some common forms of computer readable media includes, for example,floppy disk, flexible disk, hard disk, magnetic tape, any other magneticmedium, CD-ROM, any other optical medium, punch cards, paper tape, anyother physical medium with patterns of holes, RAM, PROM, EEPROM,FLASH-EEPROM, any other memory chip or cartridge, or any other mediumfrom which a computer is adapted to read.

In various embodiments of the present disclosure, execution ofinstruction sequences to practice the present disclosure may beperformed by computer system 500. In various other embodiments of thepresent disclosure, a plurality of computer systems 500 coupled bycommunication link 518 to the network (e.g., such as a LAN, WLAN, PTSN,and/or various other wired or wireless networks, includingtelecommunications, mobile, and cellular phone networks) may performinstruction sequences to practice the present disclosure in coordinationwith one another.

Where applicable, various embodiments provided by the present disclosuremay be implemented using hardware, software, or combinations of hardwareand software. Also, where applicable, the various hardware componentsand/or software components set forth herein may be combined intocomposite components comprising software, hardware, and/or both withoutdeparting from the spirit of the present disclosure. Where applicable,the various hardware components and/or software components set forthherein may be separated into sub-components comprising software,hardware, or both without departing from the scope of the presentdisclosure. In addition, where applicable, it is contemplated thatsoftware components may be implemented as hardware components andvice-versa.

Software, in accordance with the present disclosure, such as programcode and/or data, may be stored on one or more computer readablemediums. It is also contemplated that software identified herein may beimplemented using one or more general purpose or specific purposecomputers and/or computer systems, networked and/or otherwise. Whereapplicable, the ordering of various steps described herein may bechanged, combined into composite steps, and/or separated into sub-stepsto provide features described herein.

The foregoing disclosure is not intended to limit the present disclosureto the precise forms or particular fields of use disclosed. As such, itis contemplated that various alternate embodiments and/or modificationsto the present disclosure, whether explicitly described or impliedherein, are possible in light of the disclosure. Having thus describedembodiments of the present disclosure, persons of ordinary skill in theart will recognize that changes may be made in form and detail withoutdeparting from the scope of the present disclosure. Thus, the presentdisclosure is limited only by the claims.

1. (canceled)
 2. A system, comprising: a processor; a network interfacedevice; and a non-transitory computer-readable medium having storedthereon instructions executable to cause the system to performoperations comprising: accessing a rule expression, prior to deploymentwithin a networked server system of a set of one or more rules includinga first rule corresponding to the rule expression, the rule expressioncomprising a plurality of variable attributes, wherein the ruleexpression is associated with an output decision for a processing enginebased on input values for the plurality of variable attributes;determining a first variable attribute of the plurality of variableattributes for a first outcome of the rule expression; determining firstvalues for first other ones of the plurality of variable attributesrequired for the first variable attribute to be a first outcome of therule expression; setting the first other ones of the plurality ofvariable attributes for the rule expression as the first values toreduce a number of test cases of the rule expression; executingprogramming instructions for the rule expression to generate a testresult for the first variable attribute of the rule expression based onthe first values for the first other ones of the plurality of variableattributes; determining whether the test result indicates a failure ofthe rule expression; and based on the test result not indicating afailure of the rule expression, initiating a deployment of the set ofrules within the networked server system.
 3. The system of claim 2,wherein the operations further comprise: setting variable attributes fora plurality of other rule expressions for the first rule to reduceadditional numbers of test cases for the first rule, wherein initiatingthe deployment of the set of rules within the networked server system isbased on test results for the plurality of other rule expressions aftersetting the variable attributes for the plurality of other ruleexpressions for the first rule.
 4. The system of claim 2, wherein theplurality of variable attributes comprises variables for the ruleexpression associated with rule outcomes of the rule expression, whereinthe rule outcomes are dependent on input values for the variables, andwherein the number of the test cases of the rule expression is reducedfrom an exponential number of the test cases based on a number of theplurality of variable attributes to a linear number of the test casesbased on the number of the plurality of variable attribute.
 5. Thesystem of claim 2, wherein each of the plurality of variable attributesare separated by one of a plurality of logical statements for the ruleexpression, and wherein the determining the first values comprisessetting Boolean conditions corresponding to the plurality of variableattributes as one of true or false to cause the rule expression toevaluate to the first variable attribute based on the plurality oflogical statements of the rule expression.
 6. The system of claim 2,wherein the plurality of variable attributes are associated with one ormore of a user account parameter, a user device specification, userinformation, or transaction information for the networked server system.7. The system of claim 2, wherein the rule expression is a Booleanexpression, and wherein the determining the first values uses theBoolean expression.
 8. A method, comprising: accessing a rule expressionby a computer system, prior to deployment within a networked serversystem of a set of one or more rules including a first rulecorresponding to the rule expression, the rule expression comprising aplurality of variable attributes, wherein the rule expression isassociated with an output decision for a processing engine based oninput values for the plurality of variable attributes; the computersystem determining a first variable attribute of the plurality ofvariable attributes for a first outcome of the rule expression; thecomputer system determining first values for first other ones of theplurality of variable attributes required for the first variableattribute to be a first outcome of the rule expression; the computersystem setting the first other ones of the plurality of variableattributes for the rule expression as the first values to reduce anumber of test cases of the rule expression; the computer systemexecuting programming instructions for the rule expression to generate atest result for the first variable attribute of the rule expressionbased on the first values for the first other ones of the plurality ofvariable attributes; determining whether the test result indicates afailure of the rule expression; and based on the test result notindicating a failure of the rule expression, initiating a deployment ofthe set of rules within the networked server system.
 9. The method ofclaim 8, wherein the first rule is configured for use in determiningwhether to approve or reject a user request made to the networked serversystem.
 10. The method of claim 9, wherein the user request comprises anelectronic transaction request corresponding to a service provided to aplurality of users via the networked server system.
 11. The method ofclaim 10, wherein the electronic transaction request comprises anelectronic purchase transaction request, and wherein the first ruleassesses a financial risk of approving the electronic purchasetransaction request.
 12. The method of claim 8, wherein the networkedserver system is a separate system from the computer system.
 13. Themethod of claim 8, wherein each of the plurality of variable attributesare separated by one of a plurality of logical statements for the ruleexpression, and wherein the determining the first values comprisessetting Boolean conditions corresponding to the plurality of variableattributes as one of true or false to cause the rule expression toevaluate to the first variable attribute based on the plurality oflogical statements of the rule expression.
 14. The method of claim 8,wherein the plurality of variable attributes are associated with one ormore of a user account parameter, a user device specification, userinformation, or transaction information for the networked server system.15. The method of claim 8, wherein the rule expression is a Booleanexpression, and wherein the determining the first values uses theBoolean expression.
 16. A non-transitory computer-readable medium havingstored thereon instructions executable by a computer system to cause thecomputer system to perform operations comprising: accessing a ruleexpression, prior to deployment within a networked server system of aset of one or more rules including a first rule corresponding to therule expression, the rule expression comprising a plurality of variableattributes, wherein the rule expression is associated with an outputdecision for a processing engine based on input values for the pluralityof variable attributes; determining a first variable attribute of theplurality of variable attributes for a first outcome of the ruleexpression; determining first values for first other ones of theplurality of variable attributes required for the first variableattribute to be a first outcome of the rule expression; setting thefirst other ones of the plurality of variable attributes for the ruleexpression as the first values to reduce a number of test cases of therule expression; executing programming instructions for the ruleexpression to generate a test result for the first variable attribute ofthe rule expression based on the first values for the first other onesof the plurality of variable attributes; determining whether the testresult indicates a failure of the rule expression; and based on the testresult and a plurality of additional test results for other ruleexpressions of the first rule, initiating a deployment of the set ofrules within the networked server system.
 17. The non-transitorycomputer-readable medium of claim 16, wherein the operations furthercomprise: based on the test result indicating a failure of the ruleexpression, determining not to initiate the deployment of the set ofrules within the networked server system.
 18. The non-transitorycomputer-readable medium of claim 16, wherein the first rule isconfigured for use in determining whether to approve or reject a userrequest made to the networked server system.
 19. The non-transitorycomputer-readable medium of claim 18, wherein the user request comprisesan electronic transaction request corresponding to a service provided toa plurality of users via the networked server system.
 20. Thenon-transitory computer-readable medium of claim 16, wherein theplurality of variable attributes comprises variables for the ruleexpression associated with rule outcomes of the rule expression, whereinthe rule outcomes are dependent on input values for the variables, andwherein the number of the test cases of the rule expression is reducedfrom an exponential number of the test cases based on a number of theplurality of variable attributes to a linear number of the test casesbased on the number of the plurality of variable attribute.
 21. Thenon-transitory computer-readable medium of claim 16, wherein each of theplurality of variable attributes are separated by one of a plurality oflogical statements for the rule expression, and wherein the determiningthe first values comprises setting Boolean conditions corresponding tothe plurality of variable attributes as one of true or false to causethe rule expression to evaluate to the first variable attribute based onthe plurality of logical statements of the rule expression.